We describe the fringe packet tracking system used to equalise the optical path lengths at the Infrared Optical Telescope Array (IOTA) interferometer. The measurement of closure phases requires obtaining fringes on three baselines simultaneously. This is accomplished using an algorithm based on double Fourier interferometry for obtaining the wavelength-dependent phase of the fringes and a group delay tracking algorithm for determining the position of the fringe packet. The comparison between data acquired with and without the fringe packet tracker shows about a factor 3 reduction of the error on the closure-phase measurement. The fringe packet tracker has been able so far to track fringes of signal-to-noise as low as 1.8 for stars as faint as mH=7.0.